package com.wsj.service;

import java.util.List;

import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.vo.homeSite.HomeSiteAdBanner;

public interface IHomeSiteAdBannerServ {

	public void add(HomeSiteAdBanner hs) throws BusinessException;
	
	public void update(HomeSiteAdBanner hs) throws BusinessException;
	
	public void delete(HomeSiteAdBanner hs) throws BusinessException;
	
	public HomeSiteAdBanner loadHsAdBannerById(Integer id) throws BusinessException;
	
	public List loadByNewsClassId(Long newsClassId) throws BusinessException;
	
	public List loadByDiscriptId(Integer discriptId) throws BusinessException;
	
	public PageResultSet loadPageList(Long newsClassId,Integer hsDesId,String title,Integer isImg,Short isLink,Short isJs,Integer page,Integer pageSize) throws BusinessException;

	public List loadTopByNewsClassId(long newsClassId, int top) throws BusinessException;

	public List loadTopByOnlyNewsClassId(long newsClassId, int top) throws BusinessException;
	
	public List loadTopByDesId(Integer desId,Integer isPic, Integer top) throws BusinessException;

	/**  
	 * 参数：广告源ID、广告描述ID、类型，向上或向下
	 * */
	public Boolean updateSequence(Integer adId,Integer adDesId,Integer typeId) throws BusinessException;
	
	/*****
	 * 通过 栏目名称, 广告描述名称,是否删除, top位.
	 * @param newsClassName
	 * @param homeSiteAdBannerName
	 * @param isdel
	 * @param top
	 * @return
	 * @throws BusinessException
	 */
	public List loadHomeSiteAdBannerByClassName(String newsClassName, String homeSiteAdBannerName,Short picOrletter, Short isdel, Integer top)throws BusinessException;
	
}
